package com.rongxue.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SInvestmentDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SInvestmentDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("project_id is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("project_id is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Long value) {
            addCriterion("project_id =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Long value) {
            addCriterion("project_id <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Long value) {
            addCriterion("project_id >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Long value) {
            addCriterion("project_id >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Long value) {
            addCriterion("project_id <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Long value) {
            addCriterion("project_id <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Long> values) {
            addCriterion("project_id in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Long> values) {
            addCriterion("project_id not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Long value1, Long value2) {
            addCriterion("project_id between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Long value1, Long value2) {
            addCriterion("project_id not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andInvTotalIsNull() {
            addCriterion("inv_total is null");
            return (Criteria) this;
        }

        public Criteria andInvTotalIsNotNull() {
            addCriterion("inv_total is not null");
            return (Criteria) this;
        }

        public Criteria andInvTotalEqualTo(BigDecimal value) {
            addCriterion("inv_total =", value, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalNotEqualTo(BigDecimal value) {
            addCriterion("inv_total <>", value, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalGreaterThan(BigDecimal value) {
            addCriterion("inv_total >", value, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("inv_total >=", value, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalLessThan(BigDecimal value) {
            addCriterion("inv_total <", value, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalLessThanOrEqualTo(BigDecimal value) {
            addCriterion("inv_total <=", value, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalIn(List<BigDecimal> values) {
            addCriterion("inv_total in", values, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalNotIn(List<BigDecimal> values) {
            addCriterion("inv_total not in", values, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("inv_total between", value1, value2, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvTotalNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("inv_total not between", value1, value2, "invTotal");
            return (Criteria) this;
        }

        public Criteria andInvSuccIsNull() {
            addCriterion("inv_succ is null");
            return (Criteria) this;
        }

        public Criteria andInvSuccIsNotNull() {
            addCriterion("inv_succ is not null");
            return (Criteria) this;
        }

        public Criteria andInvSuccEqualTo(BigDecimal value) {
            addCriterion("inv_succ =", value, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccNotEqualTo(BigDecimal value) {
            addCriterion("inv_succ <>", value, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccGreaterThan(BigDecimal value) {
            addCriterion("inv_succ >", value, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("inv_succ >=", value, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccLessThan(BigDecimal value) {
            addCriterion("inv_succ <", value, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccLessThanOrEqualTo(BigDecimal value) {
            addCriterion("inv_succ <=", value, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccIn(List<BigDecimal> values) {
            addCriterion("inv_succ in", values, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccNotIn(List<BigDecimal> values) {
            addCriterion("inv_succ not in", values, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("inv_succ between", value1, value2, "invSucc");
            return (Criteria) this;
        }

        public Criteria andInvSuccNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("inv_succ not between", value1, value2, "invSucc");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIsNull() {
            addCriterion("device_type is null");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIsNotNull() {
            addCriterion("device_type is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeEqualTo(Integer value) {
            addCriterion("device_type =", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeNotEqualTo(Integer value) {
            addCriterion("device_type <>", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeGreaterThan(Integer value) {
            addCriterion("device_type >", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("device_type >=", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeLessThan(Integer value) {
            addCriterion("device_type <", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeLessThanOrEqualTo(Integer value) {
            addCriterion("device_type <=", value, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIn(List<Integer> values) {
            addCriterion("device_type in", values, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeNotIn(List<Integer> values) {
            addCriterion("device_type not in", values, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeBetween(Integer value1, Integer value2) {
            addCriterion("device_type between", value1, value2, "deviceType");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("device_type not between", value1, value2, "deviceType");
            return (Criteria) this;
        }

        public Criteria andAutoInvIsNull() {
            addCriterion("auto_inv is null");
            return (Criteria) this;
        }

        public Criteria andAutoInvIsNotNull() {
            addCriterion("auto_inv is not null");
            return (Criteria) this;
        }

        public Criteria andAutoInvEqualTo(Integer value) {
            addCriterion("auto_inv =", value, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvNotEqualTo(Integer value) {
            addCriterion("auto_inv <>", value, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvGreaterThan(Integer value) {
            addCriterion("auto_inv >", value, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvGreaterThanOrEqualTo(Integer value) {
            addCriterion("auto_inv >=", value, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvLessThan(Integer value) {
            addCriterion("auto_inv <", value, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvLessThanOrEqualTo(Integer value) {
            addCriterion("auto_inv <=", value, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvIn(List<Integer> values) {
            addCriterion("auto_inv in", values, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvNotIn(List<Integer> values) {
            addCriterion("auto_inv not in", values, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvBetween(Integer value1, Integer value2) {
            addCriterion("auto_inv between", value1, value2, "autoInv");
            return (Criteria) this;
        }

        public Criteria andAutoInvNotBetween(Integer value1, Integer value2) {
            addCriterion("auto_inv not between", value1, value2, "autoInv");
            return (Criteria) this;
        }

        public Criteria andRechargeNoIsNull() {
            addCriterion("recharge_no is null");
            return (Criteria) this;
        }

        public Criteria andRechargeNoIsNotNull() {
            addCriterion("recharge_no is not null");
            return (Criteria) this;
        }

        public Criteria andRechargeNoEqualTo(String value) {
            addCriterion("recharge_no =", value, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoNotEqualTo(String value) {
            addCriterion("recharge_no <>", value, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoGreaterThan(String value) {
            addCriterion("recharge_no >", value, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoGreaterThanOrEqualTo(String value) {
            addCriterion("recharge_no >=", value, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoLessThan(String value) {
            addCriterion("recharge_no <", value, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoLessThanOrEqualTo(String value) {
            addCriterion("recharge_no <=", value, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoLike(String value) {
            addCriterion("recharge_no like", value, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoNotLike(String value) {
            addCriterion("recharge_no not like", value, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoIn(List<String> values) {
            addCriterion("recharge_no in", values, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoNotIn(List<String> values) {
            addCriterion("recharge_no not in", values, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoBetween(String value1, String value2) {
            addCriterion("recharge_no between", value1, value2, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andRechargeNoNotBetween(String value1, String value2) {
            addCriterion("recharge_no not between", value1, value2, "rechargeNo");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNewIsNull() {
            addCriterion("status_new is null");
            return (Criteria) this;
        }

        public Criteria andStatusNewIsNotNull() {
            addCriterion("status_new is not null");
            return (Criteria) this;
        }

        public Criteria andStatusNewEqualTo(Integer value) {
            addCriterion("status_new =", value, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewNotEqualTo(Integer value) {
            addCriterion("status_new <>", value, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewGreaterThan(Integer value) {
            addCriterion("status_new >", value, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewGreaterThanOrEqualTo(Integer value) {
            addCriterion("status_new >=", value, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewLessThan(Integer value) {
            addCriterion("status_new <", value, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewLessThanOrEqualTo(Integer value) {
            addCriterion("status_new <=", value, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewIn(List<Integer> values) {
            addCriterion("status_new in", values, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewNotIn(List<Integer> values) {
            addCriterion("status_new not in", values, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewBetween(Integer value1, Integer value2) {
            addCriterion("status_new between", value1, value2, "statusNew");
            return (Criteria) this;
        }

        public Criteria andStatusNewNotBetween(Integer value1, Integer value2) {
            addCriterion("status_new not between", value1, value2, "statusNew");
            return (Criteria) this;
        }

        public Criteria andBowTypeIsNull() {
            addCriterion("bow_type is null");
            return (Criteria) this;
        }

        public Criteria andBowTypeIsNotNull() {
            addCriterion("bow_type is not null");
            return (Criteria) this;
        }

        public Criteria andBowTypeEqualTo(Integer value) {
            addCriterion("bow_type =", value, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeNotEqualTo(Integer value) {
            addCriterion("bow_type <>", value, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeGreaterThan(Integer value) {
            addCriterion("bow_type >", value, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("bow_type >=", value, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeLessThan(Integer value) {
            addCriterion("bow_type <", value, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeLessThanOrEqualTo(Integer value) {
            addCriterion("bow_type <=", value, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeIn(List<Integer> values) {
            addCriterion("bow_type in", values, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeNotIn(List<Integer> values) {
            addCriterion("bow_type not in", values, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeBetween(Integer value1, Integer value2) {
            addCriterion("bow_type between", value1, value2, "bowType");
            return (Criteria) this;
        }

        public Criteria andBowTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("bow_type not between", value1, value2, "bowType");
            return (Criteria) this;
        }

        public Criteria andCardNoIsNull() {
            addCriterion("card_no is null");
            return (Criteria) this;
        }

        public Criteria andCardNoIsNotNull() {
            addCriterion("card_no is not null");
            return (Criteria) this;
        }

        public Criteria andCardNoEqualTo(String value) {
            addCriterion("card_no =", value, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoNotEqualTo(String value) {
            addCriterion("card_no <>", value, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoGreaterThan(String value) {
            addCriterion("card_no >", value, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoGreaterThanOrEqualTo(String value) {
            addCriterion("card_no >=", value, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoLessThan(String value) {
            addCriterion("card_no <", value, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoLessThanOrEqualTo(String value) {
            addCriterion("card_no <=", value, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoLike(String value) {
            addCriterion("card_no like", value, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoNotLike(String value) {
            addCriterion("card_no not like", value, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoIn(List<String> values) {
            addCriterion("card_no in", values, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoNotIn(List<String> values) {
            addCriterion("card_no not in", values, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoBetween(String value1, String value2) {
            addCriterion("card_no between", value1, value2, "cardNo");
            return (Criteria) this;
        }

        public Criteria andCardNoNotBetween(String value1, String value2) {
            addCriterion("card_no not between", value1, value2, "cardNo");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneIsNull() {
            addCriterion("ghost_phone is null");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneIsNotNull() {
            addCriterion("ghost_phone is not null");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneEqualTo(String value) {
            addCriterion("ghost_phone =", value, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneNotEqualTo(String value) {
            addCriterion("ghost_phone <>", value, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneGreaterThan(String value) {
            addCriterion("ghost_phone >", value, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("ghost_phone >=", value, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneLessThan(String value) {
            addCriterion("ghost_phone <", value, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneLessThanOrEqualTo(String value) {
            addCriterion("ghost_phone <=", value, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneLike(String value) {
            addCriterion("ghost_phone like", value, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneNotLike(String value) {
            addCriterion("ghost_phone not like", value, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneIn(List<String> values) {
            addCriterion("ghost_phone in", values, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneNotIn(List<String> values) {
            addCriterion("ghost_phone not in", values, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneBetween(String value1, String value2) {
            addCriterion("ghost_phone between", value1, value2, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andGhostPhoneNotBetween(String value1, String value2) {
            addCriterion("ghost_phone not between", value1, value2, "ghostPhone");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddUserIdIsNull() {
            addCriterion("add_user_id is null");
            return (Criteria) this;
        }

        public Criteria andAddUserIdIsNotNull() {
            addCriterion("add_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andAddUserIdEqualTo(Long value) {
            addCriterion("add_user_id =", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdNotEqualTo(Long value) {
            addCriterion("add_user_id <>", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdGreaterThan(Long value) {
            addCriterion("add_user_id >", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("add_user_id >=", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdLessThan(Long value) {
            addCriterion("add_user_id <", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdLessThanOrEqualTo(Long value) {
            addCriterion("add_user_id <=", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdIn(List<Long> values) {
            addCriterion("add_user_id in", values, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdNotIn(List<Long> values) {
            addCriterion("add_user_id not in", values, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdBetween(Long value1, Long value2) {
            addCriterion("add_user_id between", value1, value2, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdNotBetween(Long value1, Long value2) {
            addCriterion("add_user_id not between", value1, value2, "addUserId");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNull() {
            addCriterion("modify_time is null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIsNotNull() {
            addCriterion("modify_time is not null");
            return (Criteria) this;
        }

        public Criteria andModifyTimeEqualTo(Date value) {
            addCriterion("modify_time =", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotEqualTo(Date value) {
            addCriterion("modify_time <>", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThan(Date value) {
            addCriterion("modify_time >", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("modify_time >=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThan(Date value) {
            addCriterion("modify_time <", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeLessThanOrEqualTo(Date value) {
            addCriterion("modify_time <=", value, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeIn(List<Date> values) {
            addCriterion("modify_time in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotIn(List<Date> values) {
            addCriterion("modify_time not in", values, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeBetween(Date value1, Date value2) {
            addCriterion("modify_time between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyTimeNotBetween(Date value1, Date value2) {
            addCriterion("modify_time not between", value1, value2, "modifyTime");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdIsNull() {
            addCriterion("modify_user_id is null");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdIsNotNull() {
            addCriterion("modify_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdEqualTo(Long value) {
            addCriterion("modify_user_id =", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdNotEqualTo(Long value) {
            addCriterion("modify_user_id <>", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdGreaterThan(Long value) {
            addCriterion("modify_user_id >", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("modify_user_id >=", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdLessThan(Long value) {
            addCriterion("modify_user_id <", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdLessThanOrEqualTo(Long value) {
            addCriterion("modify_user_id <=", value, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdIn(List<Long> values) {
            addCriterion("modify_user_id in", values, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdNotIn(List<Long> values) {
            addCriterion("modify_user_id not in", values, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdBetween(Long value1, Long value2) {
            addCriterion("modify_user_id between", value1, value2, "modifyUserId");
            return (Criteria) this;
        }

        public Criteria andModifyUserIdNotBetween(Long value1, Long value2) {
            addCriterion("modify_user_id not between", value1, value2, "modifyUserId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}